﻿define(["service/service", "service/httpService"], function (service) {
    service.factory("productActivityService", function (httpService) {
        var methods = {
            "getproducts": function (params) {
                return httpService.get("/admin/productActivity/GetProducts", params);
            },
            timebuy_get: function (params) {
                return httpService.get("/admin/productActivity/GetProductTimeBuyEdit", params);
            },
            "timebuy_save": function (params) {
                return httpService.upload("/admin/productActivity/SaveProductTimeBuy", params);
            }
        }
        return methods;
    });
});